#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int isPowerOfTwo(int n) {
    if (n == 1 || n == 2)
    {
        return 1;
    }
    else if (n % 2 != 0 || n <= 0)
    {
        return 0;
    }
    else {
        return isPowerOfTwo(n / 2);
    }
}
int main()
{
    int n = 0;
    while (scanf("%d", &n) == 1)
    {
        int i=isPowerOfTwo(n);
        if (i == 1)
        {
            printf("yes\n");
        }
        else
            printf("no\n");
    }



}